package nongchang.kuaijiecaifu.com.ncapp_android.common.binding;

import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.support.v7.widget.RecyclerView;
import android.view.View;

public class BindingHolder<T extends ViewDataBinding> extends RecyclerView.ViewHolder {

    private T binding;

    public BindingHolder(View v) {
        super(v);
        binding = DataBindingUtil.bind(v);
    }

    public T getBinding() {
        return binding;
    }
}